#!/bin/bash

# 容器名称
CONTAINER_NAME="redis-6.2"

# 数据卷路径
VOLUME_PATH="/data/redis/data"

# 日志路径
LOG_PATH="/data/redis/logs"

# 运行 Redis 容器
docker run -d --name $CONTAINER_NAME \
  -v $VOLUME_PATH:/data \
  -v $LOG_PATH:/var/log \
  -p 6379:6379 \
  redis-6.2

echo "Redis container is running with name: $CONTAINER_NAME"